home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 2279 < prev    next >
Encoding:
Text File  |  1996-08-06  |  1.3 KB  |  50 lines

  1. Newsgroups: comp.lang.c++
  2. Path: oasis.enmu.edu!peanut!reinholj
  3. From: reinholj@math.enmu.edu (John Reinhold)
  4. Subject: Finding Permutations....????
  5. Sender: news@oasis.enmu.edu (All The News Fit To Print)
  6. Message-ID: <1996Jan16.160018.24583@oasis.enmu.edu>
  7. Date: Tue, 16 Jan 1996 16:00:18 GMT
  8. Organization: Eastern New Mexico University
  9. X-Newsreader: TIN [version 1.2 PL2]
  10.  
  11. I am trying to find a good way to find permutations.
  12.  
  13. I am looking for an algorythm that would help me
  14. get started, or lead me in the right direction.
  15.  
  16. Say I have a set of numbers
  17. and Ineed to find every possible combination:
  18.  
  19. example:
  20. 123
  21. 132
  22. 213
  23. 231
  24. 312
  25. 321
  26.  
  27.  
  28. the set of numbers needs to be any size
  29. (i used 3 numbers as a simple example.)
  30.  
  31. I would not like a solution, just a lead in the right direction)
  32.  
  33. I am using Borland C++ 4.5 if that means anything...
  34. thanks.
  35.  
  36. -john
  37.  
  38.  
  39. --
  40. ----------------------------<*>----------------------------
  41.                          TEAM OS/2
  42.           At WARP speed, Windows should not be open.
  43.  
  44.            OAKLAND RAIDERS      REAL MEN WEAR BLACK
  45. ++++++++++++++++++++++++++++<:>++++++++++++++++++++++++++++
  46. reinholj@mnw.net              Montgomery, Alabama USA
  47. reinholj@math.enmu.edu        Portales, New Mexico USA
  48. No Constitution, No Freedom.  SUPPORT THE BILL OF RIGHTS.
  49.                               (NOT the Bill of Gates!)
  50.